Luca Bacci [Wed, 10 Jul 2019 13:21:01 +0000 (15:21 +0200)]
Implement choices for GtkFileChooserNativeWin32
See Merge Request !1043
Timm Bäder [Mon, 15 Jul 2019 05:48:46 +0000 (07:48 +0200)]
scrollbar: Use a box layout
Makes a lot more sense than the intermediate box just for its layout.
Timm Bäder [Mon, 15 Jul 2019 04:56:19 +0000 (06:56 +0200)]
text: Don't leak emoji chooser
Timm Bäder [Mon, 15 Jul 2019 04:43:25 +0000 (06:43 +0200)]
menu: Fix an uninitialized value
If the menu does not have any children, we'd otherwise end up calling
g_object_ref() on an uninitialized value.
Timm Bäder [Mon, 15 Jul 2019 04:38:51 +0000 (06:38 +0200)]
progressbar: Use box layout
Instead of the custom layouting we did before.
Timm Bäder [Mon, 15 Jul 2019 03:38:25 +0000 (05:38 +0200)]
text: Move some locals into the closest scope
Timm Bäder [Mon, 15 Jul 2019 03:19:02 +0000 (05:19 +0200)]
text: Remove some useless casts
Timm Bäder [Mon, 15 Jul 2019 03:17:46 +0000 (05:17 +0200)]
text: Move some locals into the closest scope
Jordi Mas [Sun, 14 Jul 2019 09:25:12 +0000 (11:25 +0200)]
Update Catalan translation
Timm Bäder [Sat, 13 Jul 2019 16:49:08 +0000 (18:49 +0200)]
Remove some dead assignments
Timm Bäder [Sat, 13 Jul 2019 16:10:15 +0000 (18:10 +0200)]
Adwaita: Add fontbutton spacing back
Timm Bäder [Sat, 13 Jul 2019 16:08:45 +0000 (18:08 +0200)]
adwaita: Remove a dead rule
GtkFileChooserButtons are called "filechooserbutton" these days, not
button.file
Timm Bäder [Sat, 13 Jul 2019 15:35:59 +0000 (17:35 +0200)]
gl renderer: Fix opacity nodes with overlapping child nodes
Aurimas Černius [Sat, 13 Jul 2019 15:28:21 +0000 (18:28 +0300)]
Updated Lithuanian translation
Timm Bäder [Sat, 13 Jul 2019 15:06:22 +0000 (17:06 +0200)]
popover: Fix a broken cast
The widget passed here is priv->relative_to, not the popover.
Timm Bäder [Sat, 13 Jul 2019 09:12:47 +0000 (11:12 +0200)]
rendernodeparser: fix typo
Timm Bäder [Sat, 13 Jul 2019 08:10:17 +0000 (10:10 +0200)]
fishbowl: Plug a small leak
Timm Bäder [Sat, 13 Jul 2019 07:38:28 +0000 (09:38 +0200)]
picture: Unref previous paintable
We were leaking all of them.
Timm Bäder [Sat, 13 Jul 2019 07:38:14 +0000 (09:38 +0200)]
suppression file: Add glReadPixels mesa exception
Timm Bäder [Sat, 13 Jul 2019 07:37:47 +0000 (09:37 +0200)]
node editor: Manually unrealize all created renderers
This has not been a problem before since we were leaking them.
Timm Bäder [Fri, 12 Jul 2019 09:59:38 +0000 (09:59 +0000)]
Merge branch 'fix-issue-2014-gtk4' into 'master'
Fix a string leak in gtkemojicompletion.c [gtk4]
Closes #2014
See merge request GNOME/gtk!993
Luca Bacci [Fri, 12 Jul 2019 08:43:44 +0000 (08:43 +0000)]
Fix a string leak
Fixes #2014
Timm Bäder [Wed, 10 Jul 2019 06:26:00 +0000 (08:26 +0200)]
fpsoverlay: Fix fps overlay position
Matthias Clasen [Tue, 9 Jul 2019 19:39:58 +0000 (19:39 +0000)]
Merge branch 'wip/baedert/accelmap' into 'master'
AccelMap: Sort accels before iterating over them in foreach()
See merge request GNOME/gtk!980
Matthias Clasen [Tue, 9 Jul 2019 19:39:13 +0000 (19:39 +0000)]
Merge branch 'wip/baedert/for-master' into 'master'
Improve the valgrind experience
See merge request GNOME/gtk!984
Kukuh Syafaat [Tue, 9 Jul 2019 07:56:21 +0000 (07:56 +0000)]
Update Indonesian translation
Asier Sarasua Garmendia [Mon, 8 Jul 2019 20:19:10 +0000 (20:19 +0000)]
Update Basque translation
Asier Sarasua Garmendia [Mon, 8 Jul 2019 20:14:08 +0000 (20:14 +0000)]
Update Basque translation
Asier Sarasua Garmendia [Mon, 8 Jul 2019 19:18:08 +0000 (19:18 +0000)]
Update Basque translation
Chun-wei Fan [Mon, 8 Jul 2019 10:37:27 +0000 (18:37 +0800)]
demos/constraint-editor: Fix linking on MSVC builds
We must apply the /entry:mainCRTStartup linker flag in order to link GTK
apps in pure GUI form. This follows what is done in demos/gtk-demo,
etc.
Timm Bäder [Mon, 8 Jul 2019 07:14:48 +0000 (07:14 +0000)]
Merge branch 'ui-enum-values' into 'master'
Change the few examples that use a full GTK_ enum value in .ui files.
See merge request GNOME/gtk!987
Timm Bäder [Mon, 8 Jul 2019 07:14:13 +0000 (07:14 +0000)]
Merge branch 'gltexsubimage2d' into 'master'
use glTexSubImage2D instead of glTextureSubImage2D
Closes #2005
See merge request GNOME/gtk!986
Timm Bäder [Mon, 8 Jul 2019 07:10:41 +0000 (07:10 +0000)]
Merge branch 'glsl-float-literals' into 'master'
glsl: use float literals
See merge request GNOME/gtk!985
Robert Ancell [Mon, 8 Jul 2019 03:52:28 +0000 (15:52 +1200)]
Change the few examples that use a full GTK_ enum value in .ui files.
Lowercase versions work just as well and are much more readable.
Piotr Drąg [Sun, 7 Jul 2019 11:22:10 +0000 (13:22 +0200)]
Update Polish translation
Timm Bäder [Sun, 7 Jul 2019 05:43:08 +0000 (07:43 +0200)]
widget: Remove queue_resize_no_redraw
We always invalidate the widget in size_allocate() anyway.
Timm Bäder [Sun, 7 Jul 2019 05:36:29 +0000 (07:36 +0200)]
widget: Make queue_compute_expand() private
Nobody needs to call this anymore.
Timm Bäder [Sun, 7 Jul 2019 05:23:05 +0000 (07:23 +0200)]
compare-render: Don't unref an invalid GFile
We already unref it when the g_file_make_directory_with_parents fails.
Timm Bäder [Sat, 6 Jul 2019 11:38:55 +0000 (13:38 +0200)]
gl renderer: Properly clean up program state transforms
Timm Bäder [Sat, 6 Jul 2019 10:57:36 +0000 (12:57 +0200)]
iconhelper: Try to avoid some save/restore calls
GtkImage already does something similar so we often end up with 0/0
here. Avoid the save()/restore() calls in GtkSnapshot in that case.
Timm Bäder [Sat, 6 Jul 2019 10:56:28 +0000 (12:56 +0200)]
transform: Fix identity transform fast paths
Returning an extra ref will cause leaks later.
Timm Bäder [Sat, 6 Jul 2019 08:26:11 +0000 (10:26 +0200)]
widget: Unref previous transform
Timm Bäder [Sat, 6 Jul 2019 07:57:35 +0000 (09:57 +0200)]
widget factory: Plug a memory leak
Timm Bäder [Sat, 6 Jul 2019 05:13:41 +0000 (07:13 +0200)]
actionmuxer: Plug a memory leak
Timm Bäder [Sat, 6 Jul 2019 07:50:44 +0000 (09:50 +0200)]
Add a gtk valgrind suppression file
Not ideal but otherwise I get 30k line output from valgrind when just
running the widget factory. It's mostly mesa but still.
Elias Aebi [Sat, 6 Jul 2019 14:23:21 +0000 (16:23 +0200)]
use glTexSubImage2D instead of glTextureSubImage2D
Elias Aebi [Sat, 6 Jul 2019 12:42:08 +0000 (14:42 +0200)]
glsl: use float literals
Timm Bäder [Sat, 6 Jul 2019 07:50:07 +0000 (09:50 +0200)]
cssprovider: Fix a memory leak in load_internal
We create a new GBytes but never unref it.
Benjamin Otte [Fri, 5 Jul 2019 18:55:54 +0000 (20:55 +0200)]
x11: Make sure stream stays alive long enough
When unreffing the stream from a different thread, the close function
will schedule its cleanup asynchornously in the main thread.
We need to make sure the stream object stays alive for as long as
that hasn't happened, so ref() it.
Fixes #2003
Timm Bäder [Thu, 4 Jul 2019 12:45:13 +0000 (12:45 +0000)]
Merge branch 'header-custom-title-valign' into 'master'
headerbar: Don't change the custom title's valign
See merge request GNOME/gtk!981
Adrien Plazas [Thu, 4 Jul 2019 11:03:37 +0000 (13:03 +0200)]
headerbar: Don't change the custom title's valign
This allows custom titles to use the vertical alignment of their choice
without having to set it manually after it has been added to the header
bar, hence allowing them to define their preferred alignment from a UI
template.
This is useful for widgets like the view switcher which requires filling
the header bar's whole height.
Timm Bäder [Wed, 3 Jul 2019 08:07:21 +0000 (10:07 +0200)]
accelmap: Sort accels before interating over them in foreach()
Timm Bäder [Wed, 3 Jul 2019 08:02:45 +0000 (10:02 +0200)]
accelmap: Avoid a confusing goto
Emmanuele Bassi [Wed, 3 Jul 2019 16:57:27 +0000 (17:57 +0100)]
ci: Comment job, not just the stage
GitLab doesn't like it when we keep a job but disable the stage.
Emmanuele Bassi [Wed, 3 Jul 2019 16:54:32 +0000 (17:54 +0100)]
ci: Disable deploy jobs
The version of gtk-doc in our CI image is not new enough to cope with
the fact that GTK lost container properties.
Benjamin Otte [Wed, 3 Jul 2019 16:21:32 +0000 (16:21 +0000)]
Merge branch 'wip/frame-clock-consumers' into 'master'
Frame clock consumers
See merge request GNOME/gtk!971
Emmanuele Bassi [Wed, 3 Jul 2019 13:25:44 +0000 (13:25 +0000)]
Merge branch 'layout-manager-ref' into 'master'
widget: Don't lose a layout manager ref
See merge request GNOME/gtk!977
Matthias Clasen [Wed, 3 Jul 2019 13:16:35 +0000 (13:16 +0000)]
widget: Don't lose a layout manager ref
gtk_widget_set_layout_manager is transfer-full,
so we must give it a new reference from set_property
to implement object property semantics properly.
Daniel Mustieles [Wed, 3 Jul 2019 09:45:12 +0000 (11:45 +0200)]
Updated Spanish translation
Jonas Ådahl [Fri, 28 Jun 2019 18:54:16 +0000 (20:54 +0200)]
gdksurface: Make all surfaces listen to the frame clock signals
Instead of the toplevel driving popups, have the popups listen to the
frame clock themselves. Otherwise, if the toplevel for some reason isn't
drawn by the compositor and stops drawing new frames, popups wouldn't
get painted either.
Jonas Ådahl [Fri, 28 Jun 2019 16:45:44 +0000 (18:45 +0200)]
gdk/frameclock: Make surfaces inhibit freeze
To make a frame clock tick as long as any of the associated surfaces
expect to receive ticks, make the surfaces inhibit freezing the clock,
instead of directly tell the frame clock to freeze itself.
This makes it so that as long as any surface using a certain frame clock
is not frozen (e.g. just received a frame event from the display
server), the frame clock will not be frozen.
With this, the frame clock is initiated as frozen, and won't be thawed
until any surface inhibits freeze. It will be frozen again, when every
surface has that previously inhibited freeze uninhibited freeze.
Jonas Ådahl [Tue, 25 Jun 2019 12:14:31 +0000 (14:14 +0200)]
tests: Add back testpopupat
It's still useful for testing menus. Fixed the .ui file by removing a
property that no longer exists.
This effectively reverts commit
84d2150077bbab60529ef8345f58247fee527364.
Jonas Ådahl [Mon, 24 Jun 2019 09:09:35 +0000 (11:09 +0200)]
menu: Remove unused variable
Mohammed Sadiq [Wed, 3 Jul 2019 04:01:39 +0000 (09:31 +0530)]
constraint: Fix property name typo in doc
Piotr Drąg [Tue, 2 Jul 2019 17:02:36 +0000 (19:02 +0200)]
Update POTFILES.in and POTFILES.skip
Matej Urbančič [Tue, 2 Jul 2019 16:51:55 +0000 (18:51 +0200)]
Updated Slovenian translation
Matthias Clasen [Tue, 2 Jul 2019 14:18:42 +0000 (14:18 +0000)]
Merge branch 'constraint-list-model' into 'master'
Constraint list models
See merge request GNOME/gtk!975
Matthias Clasen [Tue, 2 Jul 2019 11:41:32 +0000 (11:41 +0000)]
constraint editor: Implement loading
Allow to reread the ui builder files we write out.
Just barely.
Matthias Clasen [Tue, 2 Jul 2019 04:35:16 +0000 (04:35 +0000)]
constraints editor: Stop naming constraints
We don't have a field for the name in ui files,
so stop naming constraints.
Matthias Clasen [Mon, 1 Jul 2019 18:39:36 +0000 (18:39 +0000)]
constraint editor: Implement saving
Save to a ui file.
Matthias Clasen [Tue, 2 Jul 2019 03:15:12 +0000 (03:15 +0000)]
constraint editor: Use name properties
Matthias Clasen [Tue, 2 Jul 2019 00:15:55 +0000 (20:15 -0400)]
constraint editor: Use the list models
Instead of handrolling our own list models,
use the ones provided by GtkConstraintLayout.
Matthias Clasen [Tue, 2 Jul 2019 00:14:26 +0000 (20:14 -0400)]
constraint layout: Provide list models
Provide list models for the constraints and guides,
so we can show them in the inspector, and use them
in e.g. the constraints editor.
Matthias Clasen [Tue, 2 Jul 2019 14:01:01 +0000 (14:01 +0000)]
Merge branch 'wip/ebassi/constraint-layout' into 'master'
Add constraint-based layout manager
Closes #1090
See merge request GNOME/gtk!973
Emmanuele Bassi [Tue, 2 Jul 2019 08:48:17 +0000 (09:48 +0100)]
docs: Add more private headers to the list
The various GtkConstraint private API should not be scanned for
documentation.
Emmanuele Bassi [Tue, 2 Jul 2019 08:44:48 +0000 (09:44 +0100)]
docs: Fix typo in function name
Daniel Boles [Mon, 1 Jul 2019 18:13:45 +0000 (19:13 +0100)]
widget-factory: Use correct StyleProvider priority
We are an application, not a user.
cherry-pick of !974
Matthias Clasen [Tue, 2 Jul 2019 01:28:43 +0000 (01:28 +0000)]
Merge branch 'option-names' into 'master'
meson: Rename documentation option to gtk_doc
See merge request GNOME/gtk!972
Benjamin Otte [Mon, 1 Jul 2019 23:57:20 +0000 (23:57 +0000)]
flattenlistmodeL: Compute items-changed position properly
The code previously forgot to include the left child of the model's
node. Which of course only happened if that child wasn't NULL, which is
a common case.
Found and test provided by Matthias Clasen.
Matthias Clasen [Mon, 1 Jul 2019 16:57:16 +0000 (12:57 -0400)]
meson: Rename documentation option to gtk_doc
This name is what most of the stack is using.
Lets follow along, even though it is (imo)
uglier.
Christoph Reiter [Mon, 1 Jul 2019 19:52:06 +0000 (21:52 +0200)]
meson: cups: use cups-config for looking up cups
We were looking for the cups headers and the cups lib in the default locations
which for example breaks with OpenBSD where the cups headers are under /usr/local/include/
Instead just use the "cups" dependency type from meson which internally uses cups-config.
See #1967
Ported to master from !963
Christoph Reiter [Sat, 15 Jun 2019 07:42:17 +0000 (09:42 +0200)]
build/cups: remove checks for httpGetAuthString and http_t.authstring
httpGetAuthString() was added with cups 1.3 and we depend on a newer version
now. The direct field access was a fallback in case httpGetAuthString()
was missing, so this can also be dropped.
Ported to master from !938
Emmanuele Bassi [Mon, 1 Jul 2019 18:22:48 +0000 (19:22 +0100)]
Add custom parser for guides defined in GtkBuilder UI files
Like we describe constraints, we can also define guides.
Emmanuele Bassi [Mon, 1 Jul 2019 17:03:20 +0000 (18:03 +0100)]
Implement GtkBuildable for GtkConstraintLayout
Using GtkBuildable we can provide a custom parser for reading
constraints defined in a GtkBuilder UI file.
Emmanuele Bassi [Mon, 1 Jul 2019 17:02:19 +0000 (18:02 +0100)]
Use the right GValue getter for GtkConstraintGuide:strength
The property is defined as an enum.
This fixes the defaultvalue and notify tests.
Emmanuele Bassi [Mon, 1 Jul 2019 11:39:24 +0000 (12:39 +0100)]
Use explicit values for constraint strength
Instead of playing games with mapping negative symbolic values to
positive ones, let's use the appropriate constants everywhere. This
allows us to use:
GTK_CONSTRAINT_STRENGTH_WEAK * 2
Or
GTK_CONSTRAINT_STRENGTH_STRONG + 1
In code using the public API.
We also store the strength values as integers, so we can compare them
properly, and only turn them into doubles when they are inserted into
the solver, just like every other variable.
Matthias Clasen [Mon, 1 Jul 2019 04:24:26 +0000 (04:24 +0000)]
constraint editor: Allow dragging children
We add a weak constraint for the position
and update it as the widget is dragged.
Matthias Clasen [Mon, 1 Jul 2019 03:17:58 +0000 (03:17 +0000)]
Documentation fixes
Make sure all types show up in the docs,
and misc other improvements.
Matthias Clasen [Mon, 1 Jul 2019 02:23:39 +0000 (02:23 +0000)]
constraint editor: Enable max size for guide
Also, use the apis we have now, and make the
spin buttons display 'unset' values as such.
Matthias Clasen [Sat, 29 Jun 2019 04:17:46 +0000 (04:17 +0000)]
constraint layout: go back to keeping constraints
We want to minimize changes to the solver, so
keep the size constraints around and only update
them when the size changes.
Matthias Clasen [Sat, 29 Jun 2019 22:20:20 +0000 (22:20 +0000)]
constraint layout: Use stronger force for min size
We want our edit constraint to be strong enough to
overpower nat. size constraint, therefore use STRONG * 2.
Emmanuele Bassi [Mon, 1 Jul 2019 00:13:00 +0000 (01:13 +0100)]
Fix warnings from the introspection scanner
The name of the arguments of the functions must match the name of the
arguments in the documentation stanza.
Emmanuele Bassi [Mon, 1 Jul 2019 00:12:25 +0000 (01:12 +0100)]
Add gtkconstraintguide.h to the public headers
It needs to be introspected and installed.
Emmanuele Bassi [Mon, 1 Jul 2019 00:05:04 +0000 (01:05 +0100)]
Remove specialised API from GtkConstraint
Thet widget-based API for constraint target and source properties is
unused, and not really necessary.
Emmanuele Bassi [Mon, 1 Jul 2019 00:02:56 +0000 (01:02 +0100)]
Add missing documentation for GtkConstraint
Emmanuele Bassi [Sun, 30 Jun 2019 23:49:20 +0000 (00:49 +0100)]
docs: Add GtkConstraint and friends to the API reference
Emmanuele Bassi [Sun, 30 Jun 2019 23:48:59 +0000 (00:48 +0100)]
Document GtkConstraintGuide
Emmanuele Bassi [Sun, 30 Jun 2019 23:47:44 +0000 (00:47 +0100)]
Move the VFL error domain to a public header
Since the public API will use it to fill out GErrors, it needs to be
publicly available.
Matthias Clasen [Sun, 30 Jun 2019 23:17:40 +0000 (23:17 +0000)]
Merge branch 'gbsneto/fix-popover-dark-theme' into 'master'
Fix GtkPopoverMenu in dark theme
See merge request GNOME/gtk!970
Matthias Clasen [Sun, 30 Jun 2019 13:25:30 +0000 (13:25 +0000)]
Add a constraint editor demo
This is an initial cut at providing a tool
for interactive exploration of constraints.